<template>
  <div class="not-found">
    <el-container>
      <el-main>
        <div class="content">
          <h1>404</h1>
          <h2>页面未找到</h2>
          <p>抱歉，您访问的页面不存在</p>
          <el-button type="primary" @click="goHome">返回首页</el-button>
        </div>
      </el-main>
    </el-container>
  </div>
</template>

<script>
import { useRouter } from 'vue-router'

export default {
  name: 'NotFound',
  setup() {
    const router = useRouter()

    const goHome = () => {
      router.push('/')
    }

    return {
      goHome
    }
  }
}
</script>

<style scoped>
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f7fa;
}

.content {
  text-align: center;
  padding: 40px;
}

h1 {
  font-size: 120px;
  margin: 0;
  color: #409EFF;
  line-height: 1;
}

h2 {
  font-size: 32px;
  margin: 20px 0;
  color: #303133;
}

p {
  font-size: 18px;
  color: #606266;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  h1 {
    font-size: 80px;
  }

  h2 {
    font-size: 24px;
  }

  p {
    font-size: 16px;
  }
}
</style> 